package com.cykj.system.api;

import com.cykj.common.core.constant.ServiceNameConstants;
import com.cykj.common.core.domain.R;
import com.cykj.system.api.factory.RemoteShopFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(contextId = "remoteShopService", value = ServiceNameConstants.SHOP_SERVICE, fallbackFactory = RemoteShopFallbackFactory.class)
public interface RemoteShopService {
    /**
     * 获取店铺详情
     */
    @GetMapping("/shopInfo/showShopInfo")
    R<Map<String, Object>> getShopInfo(@RequestParam("businessId") Long businessId);
}